import Router from '@koa/router'
import {
    deletePackageByIdController,
    getPackagePageController,
    postPackageController,
    putPackageByIdController,
} from '../controllers/package'

const packageRouter = new Router({
    prefix: '/package',
})

// 用户的增删改查
packageRouter.get('/', getPackagePageController) // 获取用户列表
packageRouter.post('/', postPackageController) // 添加用户
packageRouter.put('/:id', putPackageByIdController) // 修改用户信息
packageRouter.delete('/:id', deletePackageByIdController) // 删除用户

export default packageRouter
